package io.renren.modules.member.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.member.entity.StandardTotalEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StandardTotalDao extends BaseMapper<StandardTotalEntity> {

    @Select("SELECT " + StandardTotalEntity.SQL_COLUMN + " FROM standard_total t WHERE t.type = #{type} LIMIT 1")
    StandardTotalEntity findByType(@Param("type") Integer type);
}
